<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
    <!-- vue -->
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.10/vue.min.js"></script>
    <!-- axios -->
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.18.1/axios.min.js"></script>
    <!-- element-ui js -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <!-- element-ui css -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">

</head>
<body>
<div id="app">
    <el-button @click="cors">{{title}}</el-button>

</div>
</body>
<script>
    new Vue({
        el: '#app',
        data() {
            return {
                title: '测试',
            }
        },
        methods: {
            cors(){
                axios({
                    method: 'GET',
                    url: 'http://localhost:8088/order-server/order/header',
                    params: {
                        name: 'dl'
                    }
                }).then((response)=>{
                    console.log(response)
                })
            }
        },
        mounted(){
            console.log(111)
        }
    });

</script>
</html>
